<!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN" 
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>Locate For Me</title>
    <link charset="utf-8" title="no title" media="screen" type="text/css" href="script/css/style.css" rel="stylesheet"/>
    <link charset="utf-8" title="no title" media="screen" type="text/css" href="script/css/ui-lightness/jquery-ui-1.7.2.custom.css" rel="stylesheet"/>
  
    <script type="text/javascript" src="script/jquery-1.4.1.js"></script>
    
    <script type="text/javascript">
    $(function() {

    	var result = $.parseJSON($('#result').text());
    	var tips = result.groups[0].tips;

    	jQuery.each(tips,function(index,tip){ 
        	var txt = $('#venueList').text();
        	txt = txt + tip.text;       	
    		$('#venueList').text(txt);
        });
            
        
        
    })
    </script>
  </head>
  <body>
         	
  <div id="result">
  {"groups":[{"type":"Nearby","tips":[{"id":245192,"text":"Good venue hire","created":"Sat, 30 Jan 10 08:05:41 +0000","distance":0,"user":{"id":325058,"firstname":"Lindsay","lastname":"W.","photo":"http://foursquare.com/img/blank_girl.png","gender":"female"},"venue":{"id":836244,"name":"Osborne Street","address":"8 Osborne Street, Newmarket","city":"Auckland","state":"","geolat":-36.868194,"geolong":174.777124}},{"id":478576,"text":"Apple Store","created":"Sun, 14 Mar 10 10:53:08 +0000","distance":80,"user":{"id":508501,"firstname":"Ping","lastname":"X.","photo":"http://playfoursquare.s3.amazonaws.com/userpix_thumbs/WAYKDPUE1INCAEKP.jpg","gender":"male"},"venue":{"id":608585,"name":"Magnum Mac","address":"123 Broadway","crossstreet":"Newmarket","city":"Auckland","state":"Auckland","geolat":-36.867905,"geolong":174.777948,"phone":"0800622468"}},{"id":398234,"text":"Apple store","created":"Sun, 28 Feb 10 22:02:17 +0000","distance":80,"user":{"id":467991,"firstname":"Swapneil","lastname":"D.","photo":"http://foursquare.com/img/blank_boy.png","gender":"male"},"venue":{"id":608585,"name":"Magnum Mac","address":"123 Broadway","crossstreet":"Newmarket","city":"Auckland","state":"Auckland","geolat":-36.867905,"geolong":174.777948,"phone":"0800622468"}}]}]}
  </div>  
        
  ---------------------------------------
  Venue List:
  <div id="venueList"></div>
  </body>
  
    
</html>